package com.ruoyi.project.travel.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.MbEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

import java.util.Date;

/**
 * 预约 对象 tr_appointment
 *
 * @author HYD
 * @date 2020-06-14
 */
@Data
@TableName("tr_appointment")
@ApiModel(value="tr_appointment对象", description="预约 ")
public class Appointment extends MbEntity {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    @Excel(name = "景区编号")
    @TableField("scenic_id")
    @ApiModelProperty(value = "景区编号")
    private Long scenicId;

    @Excel(name = "开始时间")
    @TableField("begin_time")
    @ApiModelProperty(value = "开始时间")
    private String beginTime;

    @Excel(name = "结束时间")
    @TableField("end_time")
    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @Excel(name = "用户编号")
    @TableField("user_id")
    @ApiModelProperty(value = "用户编号")
    private Long userId;

    @Excel(name = "状态 -1：取消预约，0：待核销，1：已核销，2：已结束")
    @TableField("state")
    @ApiModelProperty(value = "状态 -1：取消预约，0：待核销，1：已核销，2：已结束")
    private Long state;

    @TableField("update_time")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @TableField("create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;


}
